//
//  UIAlertView+Conveniently.m
//  app
//
//  Created by 刘华舟 on 15/5/7.
//  Copyright (c) 2015年 hdaren. All rights reserved.
//

#import "UIAlertView+Conveniently.h"

@implementation UIAlertView (Conveniently)

//显示对话框
+ (void)alertWithTitle:(NSString *)title message:(NSString *)message{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:message delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil];
    [alertView show];
}

//显示对话框
+ (void)showAlertWithTitle:(NSString *)title message:(NSString *)message{
    [UIAlertView showAlertWithTitle:title message:message delegate:nil tag:0];
}

//显示对话框
+ (void)showAlertWithTitle:(NSString *)title message:(NSString *)message delegate:(id)delegate tag:(NSInteger)tag{
    UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:title message:message delegate:delegate cancelButtonTitle:@"确定" otherButtonTitles:nil];
    alertView.tag = tag;
    [alertView show];
}

@end
